package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

@ApiModel(value = "SpuTagModel", description = "商品分组表")
@Data
@TableName(value = "P_SPU_TAG", autoResultMap = true)
public class SpuTagModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "分组标签id")
    private Long id;

    @ApiModelProperty(value = "分组标题")
    private String title;

    @ApiModelProperty(value = "店铺Id")
    private Long shopId;

    @ApiModelProperty(value = "状态(0:禁用,1:启用)")
    private Boolean status;

    @ApiModelProperty(value = "默认类型(0:商家自定义,1:系统默认)")
    private Boolean isDefault;

    @ApiModelProperty(value = "商品数量")
    private Integer prodCount;

    @ApiModelProperty(value = "列表样式(0:一列一个,1:一列两个,2:一列三个)")
    private Integer style;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;
}
